import { createRouter, createWebHistory } from 'vue-router'
import TaskList from '../views/TaskList.vue'
import StepList from '../views/StepList.vue'
import Monitor from '../views/Monitor.vue'

const routes = [
  {
    path: '/',
    name: 'TaskList',
    component: TaskList
  },
  {
    path: '/task/:id/steps',
    name: 'StepList',
    component: StepList
  },
  {
    path: '/monitor',
    name: 'Monitor',
    component: Monitor
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router 